import axios from '../utils/myaxios.js'
export const useraxios = (data) => {
    return axios({
        url: '/login',
        method: 'post',
        data
    })
}
export const getUserRegister = (data) => {
    return axios({
        url: '/register',
        method: 'post',
        data
    })
}
export const getEditePeoper = (id, data) => {
    return axios({
        method: 'post',
        url: `/user_update/${id}`,
        data
    })
}
export const getUserInfo = (id) => {
    return axios({
        url: `/user/${id}`,
        // headers: { Authorization: JSON.parse(localStorage.getItem('heima_token')).token }
    })
}

